﻿using YAPACS.RisServer.Interface.Imitate;
using YAPACS.RisServer.Services.ECharts;

namespace YAPACS.RisServer.Abstractions;

/// <summary>
/// 图表功能接口
/// </summary>
public interface IHomeChartService
{
    /// <summary>
    /// 获取工作量图表option (包括 dataSet 和 config)
    /// </summary>
    /// <param name="stage">所处阶段</param>
    /// <param name="level">主体组织层级</param>
    /// <param name="startTime">开始时间</param>
    /// <param name="endTime">结束时间</param>
    /// <param name="granularity">统计粒度</param>
    /// <returns></returns>
    AmisRes GetWorkloadChartOption(string stage, string level, DateTime startTime, DateTime endTime, string granularity, string stationCode);

    /// <summary>
    /// 获取工作量图表数据集
    /// </summary>
    /// <param name="stage">所处阶段</param>
    /// <param name="level">主体层级</param>
    /// <param name="startTime">开始时间</param>
    /// <param name="endTime">结束时间</param>
    /// <param name="granularity">统计粒度</param>
    /// <returns></returns>
    DataSource GetWorkLoadDataSet(string stage, string level, DateTime startTime, DateTime endTime, string granularity, string seriesName, string stationCode);
}
